require.config({
    baseUrl: 'static/',
    // ref: http://www.ruanyifeng.com/blog/2012/11/require_js.html
    shim: {
        underscore: {
            exports: '_'
        },
        backbone: {
            deps: [
                'underscore',
                'jquery'
            ],
            exports: 'Backbone'
        },

        bootstrap: {
            deps: ["jquery"]
        },
        jstz:{
            exports: 'jstz'
       }
    },
    paths: {
        jquery: 'lib/jquery/jquery.min',
        underscore: 'lib/underscore/underscore',
        backbone: 'lib/backbone/backbone',
        text: 'lib/requirejs/text',
        bootstrap: "lib/bootstrap/js/bootstrap.min",
        jstz:"lib/jstz/jstz.min"
    }
});

/*
require(['jquery', 'backbone', 'js/app'], function($, Backbone, AppView) {
    var appView = new AppView();
});
*/
require(['routers/router'], function(Router) {
  var router = new Router();
  Backbone.history.start();
});
